package com.grao.waterschool.human.utils;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BeanToStringUtil {

    public static String stringBean(Object obj) {
        if (obj == null) {
            return "null";
        }
        return new ToStringBuilder(obj, ToStringStyle.JSON_STYLE).toString();
    }
}
